module App
    class Timer < Qt::Widget
        slots 'timeout()'

        def initialize(intv = 1000)
            super()
            @timer = Qt::Timer.new self
            connect(@timer, SIGNAL('timeout()'), self, SLOT('timeout()'))
            @timer.start intv
        end

        def destroy()
            super()
            @timer.stop
            @timer = nil
        end

        private
        def timeout()
        end
    end
end
